from PyQt5.QtWidgets import *
from UI.Information_UI import Ui_MainWindow


class InfoWindow(QMainWindow, Ui_MainWindow):
    def __init__(self, info=None, parent=None):  # info是一个列表
        super(InfoWindow, self).__init__(parent)
        self.setupUi(self)
        self.setWindowTitle('详细信息')
        if info:
            for i in info:
                self.textBrowser.append(i)

